import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

// 全局注册el-tree组件
import ElTree from './components/el-tree.vue'

Vue.component('el-tree', ElTree)
Vue.config.productionTip = false
// 将axios绑定在原型上，以后就可以通过this来访问这个方法了
Vue.prototype.$http = axios

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
